package com.xhj.bigfactory.bigFactory.ThreadPool;
/**
 * -
 *
 * @author 周沫 @Date 2021-07-31 @Time 19:37
 */
public class CPUDemo {
  public static void main(String[] args) {
    System.out.println(
        "Runtime.getRuntime().availableProcessors() = "
            + Runtime.getRuntime().availableProcessors());
    System.out.println(
        "Runtime.getRuntime().freeMemory() = " + Runtime.getRuntime().freeMemory() / 1024 / 1024);
    System.out.println(
        "Runtime.getRuntime().maxMemory() = " + Runtime.getRuntime().maxMemory() / 1024 / 1024);
  }
}
